package one.stand.controller;

import lombok.extern.slf4j.Slf4j;
import one.stand.model.ResultModel;
import one.stand.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RequestMapping("home")
@RestController
@Slf4j
public class HomeController {
    @Autowired
    private HomeService homeService;

    /**
     * 微信pc登陆
     *
     * @return
     */
    @PostMapping("getPcLoginImg")
    public ResultModel<String> getPcLoginImg(@RequestParam String companyKey) {
        return homeService.getPcLoginImg(companyKey);
    }
}
